home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
util
/
cli
/
Extract.lha
/
Extract.readme
< prev
Wrap
Text File
|
1995-06-11
|
2KB
|
40 lines
Short: extracts pieces from files
Uploader: steigies@physik.uni-kiel.d400.de (Christian Steigies)
Author: steigies@physik.uni-kiel.d400.de (Christian Steigies)
Type: util/cli
Extract was written for a poor guy, who has a CD-Rom drive but can't
use it together with his HD. As he didn't find a split program which
allowed to change the disk after writing a file, I wrote this program,
which extracts a given amount of bytes from a file.
After copying the small files on the HD, they can be put together with
the join command.
To split an archive of 2.000.000 bytes into pieces which fit on DD disk,
one could use the follwing commands:
Extract large df0:small.1 1 800000
Extract large df0:small.2 800001 1600000
Extract large df0:small.3 1600001 2000000
After copying them all onto HD,
join small.1 small.2 small.3 as large
can be used to regain the original archive.
Usage:
Extract <infile> <outfile> <from:bytes> <to:bytes>
This is kind of my first C program, so please don't blame me for bad
programming style or if it blows up your Harddisk. I know that it can be
programmed smarter, but it runs ok on my and Martins Amiga, but I don't
use it too often (I still have no CD-Rom, and when I have mine, I'm sure
that it will work together with my HD).
Extract was compiled with GNU C version 2.5.8 (requires ixemul.library,
in gcc_ixemul) and with GNU C version 2.6.3 (does not require the
ixemul library, in gcc_noixemul, thanx to martin for this one).
The sourcecode is included.